package com.ej.demo.page;

import static org.testng.AssertJUnit.assertEquals;

import com.thoughtworks.selenium.Selenium;

public class HotelOptionsPage {

	private Selenium selenium;

	public HotelOptionsPage() {
		selenium = eJTestBase.getSeleniumObj();
	}

	public void navigateToCarRentalsPage() {
		String continueButton = "//a[@id='btnContinue']/span";
		selenium.click(continueButton);
		selenium.waitForPageToLoad("60000");
		assertEquals(selenium.getTitle(), "easyJet - Step 4 - Car rental");
	}
}
